//处理参数
// 百川参数制造（暂时用此组件，后期自行更新）
export function mkParam(param) {
  param.mmpid = 'mm_119218458_40510501_158026338';
  param.adzoneid = '158026338';
  param.tkkey = '27691915';
  param.opentype = 'native';
  param.isvcode = 'app';
  return param;
}


export function taobaoParam(){
    var parm = {}
    parm.api = 'https://eco.taobao.com/router/rest';
    parm.app_key = '28617401';
    parm.app_secret = 'a6813174f8dbdcd4ad95d97e428ad2ca';
    parm.Pid = 'mm_169220122_1290100019_110104050415';
    parm.adzone_id = '110104050415';
    parm.tb_name = '星华就是我';
    return parm
}

export function mkParamTo(param) {
    param.Pid =taobaoParam().Pid
    param.Adzoneid =taobaoParam().adzone_id
    param.taokeAppkey =taobaoParam().app_key

    param.OpenType ='Auto'
    param.clientType ='taobao'
    param.BACK_URL ='alisdk://'
    param.AlibcFailModeType ='AlibcNativeFailModeJumpH5'
    param.isvcode = 'app'

    param.BizCodeStr =
        param.BizCodeStr && param.BizCodeStr !== '' ? param.BizCodeStr : '';
    param.sellerId =
        param.sellerId && param.sellerId !== '' ? param.sellerId : '';
    return param;
}
